package org.space.galaxyCabinet.service;

import org.space.galaxyCabinet.domain.DeviceLog;
import org.space.galaxyCabinet.domain.DeviceStatus;

import java.time.Instant;
import java.time.LocalDateTime;
import java.util.List;

public interface InfluxDBService {
    boolean uploadedDeviceStatus(DeviceStatus deviceStatus);
    boolean uploadedDeviceLog(DeviceLog deviceLog);
    List<DeviceStatus> queryDeviceStatusByConditions(String deviceNo, String start, String end);
    List<DeviceStatus> queryDeviceStatusByConditions(String deviceNo);
    DeviceStatus queryLastDeviceStatusByConditions(String deviceNo);
    List<DeviceLog> queryDeviceLogByConditions(String deviceNo, LocalDateTime start, LocalDateTime end);
}
